

#ifndef _ATOMIC_OP_ASM_H_
#define	_ATOMIC_OP_ASM_H_

#include <machine/asm.h>

#if defined(_KERNEL) || defined(_STANDALONE)

#define	ATOMIC_OP_ALIAS(a,s)	STRONG_ALIAS(a,s)

#else /* _KERNEL */

#define	ATOMIC_OP_ALIAS(a,s)	WEAK_ALIAS(a,s)
#ifdef _LIBC
#define	CRT_ALIAS(a,s)		STRONG_ALIAS(a,s)
#endif

#endif /* _KERNEL */

#ifdef __ARMEB__
#define	HI	r0
#define	LO	r1
#define	NHI	r2
#define	NLO	r3
#define	THI	r4
#define	TLO	r5
#else
#define	LO	r0
#define	HI	r1
#define	NLO	r2
#define	NHI	r3
#define	TLO	r4
#define	THI	r5
#endif

#ifndef CRT_ALIAS
#define	CRT_ALIAS(a,s)
#endif

#endif /* _ATOMIC_OP_ASM_H_ */
